package cn.anc.aonicardv.bean;

/**
 * Created by yangdai on 2017/8/31.
 */

public class Location {

    private String country;

    private double latitude;

    private double longitude;

    private double speed;

    private String currentTrackTime;
//默认最大值 100
    private double accuracy = 100.00;

    public double getAccuracy() {
        return accuracy;
    }

    public void setAccuracy(double accuracy) {
        this.accuracy = accuracy;
    }

    public Location(String country, double latitude, double longitude, double speed, String currentTrackTime, float accuracy) {
        this.country = country;
        this.latitude = latitude;
        this.longitude = longitude;
        this.speed = speed;
        this.currentTrackTime = currentTrackTime;
        this.accuracy = accuracy;
    }

    public Location(double latitude, double longitude) {
        this.latitude = latitude;
        this.longitude = longitude;
    }

    public double getLatitude() {
        return latitude;
    }

    public void setLatitude(double latitude) {
        this.latitude = latitude;
    }

    public double getLongitude() {
        return longitude;
    }

    public void setLongitude(double longitude) {
        this.longitude = longitude;
    }

    public double getSpeed() {
        return speed;
    }

    public void setSpeed(double speed) {
        this.speed = speed;
    }

    public String getCurrentTrackTime() {
        return currentTrackTime;
    }

    public void setCurrentTrackTime(String currentTrackTime) {
        this.currentTrackTime = currentTrackTime;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    @Override
    public String toString() {
        return "Location{" +
                "country='" + country + '\'' +
                ", latitude=" + latitude +
                ", longitude=" + longitude +
                ", speed=" + speed +
                ", currentTrackTime=" + currentTrackTime +
                ", accuracy='" + accuracy + '\'' +
                '}';
    }
}
